from application import app
from common.libs.logservice import LogService
from common.libs.render_helper import ops_render


@app.errorhandler(404)
def error_404(e):
    LogService.addErrorlog(str(e)) # 错误内容
    return ops_render("error/error.html", {"msg": "温馨提醒您访问的页面不存在~", "status": 404})